(function () {
  'use strict';
  angular
    .module('client')
    .constant('WS_API', {
      video: 'ws://121.14.28.203:7600',
    })
    .constant('PLAYER_STREAM_TYPE', {
      video: 'h264',
    })
    .constant('CONTROL_API', {
      releaseDevice: '/api/device/:deviceID',
    })
    .constant('KEYBOARD_CONTROL_TABLE', {
      keys: [
        undefined, //keyCode 0
        undefined, //keyCode 1
        undefined, //keyCode 2
        undefined, //keyCode 3
        undefined, //keyCode 4
        undefined, //keyCode 5
        undefined, //keyCode 6
        undefined, //keyCode 7
        67, //keyCode 8 = backspace
        61, //keyCode 9 = tab
        undefined, //keyCode 10
        undefined, //keyCode 11
        28, //keyCode 12 = clear
        66, //keyCode 13 = enter
        undefined, //keyCode 14
        undefined, //keyCode 15
        60, //keyCode 16 = shift_left
        113, //keyCode 17 = control_left
        57, //keyCode 18 = alt_left
        121, //keyCode 19 = pause
        115, //keyCode 20 = caps_lock
        undefined, //keyCode 21
        undefined, //keyCode 22
        undefined, //keyCode 23
        undefined, //keyCode 24
        undefined, //keyCode 25
        undefined, //keyCode 26
        111, //keyCode 27 = escape ESC
        undefined, //keyCode 28
        undefined, //keyCode 29
        undefined, //keyCode 30
        undefined, //keyCode 31
        62, //keyCode 32 = space
        92, //keyCode 33 = prior Page Up
        93, //keyCode 34 = next Page Down
        undefined, //keyCode 35
        3, //keyCode 36 = home
        21, //keyCode 37 = left
        19, //keyCode 38 = up
        22, //keyCode 39 = right
        20, //keyCode 40 = down
        109, //keyCode 41 = select
        120, //keyCode 42 = print
        undefined, //keyCode 43 = execute
        undefined, //keyCode 44
        124, //keyCode 45 = insert
        undefined, //keyCode 46 = delete
        259, //keyCode 47 = help
        7, //keyCode 48 = 0
        8, //keyCode 49 = 1
        9, //keyCode 50 = 2
        10, //keyCode 51 = 3
        11, //keyCode 52 = 4
        12, //keyCode 53 = 5
        13, //keyCode 54 = 6
        14, //keyCode 55 = 7
        15, //keyCode 56 = 8
        16, //keyCode 57 = 9
        undefined, //keyCode 58
        undefined, //keyCode 59
        undefined, //keyCode 60
        undefined, //keyCode 61
        undefined, //keyCode 62
        undefined, //keyCode 63
        undefined, //keyCode 64
        29, //keyCode 65 = a
        30, //keyCode 66 = b
        31, //keyCode 67 = c
        32, //keyCode 68 = d
        33, //keyCode 69 = e
        34, //keyCode 70 = f
        35, //keyCode 71 = g
        36, //keyCode 72 = h
        37, //keyCode 73 = i
        38, //keyCode 74 = j
        39, //keyCode 75 = k
        40, //keyCode 76 = l
        41, //keyCode 77 = m
        42, //keyCode 78 = n
        43, //keyCode 79 = o
        44, //keyCode 80 = p
        45, //keyCode 81 = q
        46, //keyCode 82 = r
        47, //keyCode 83 = s
        48, //keyCode 84 = t
        49, //keyCode 85 = u
        50, //keyCode 86 = v
        51, //keyCode 87 = w
        52, //keyCode 88 = x
        53, //keyCode 89 = y
        54, //keyCode 90 = z
        undefined, //keyCode 91
        undefined, //keyCode 92
        undefined, //keyCode 93
        undefined, //keyCode 94
        undefined, //keyCode 95
        144, //keyCode 96 = kp_0
        145, //keyCode 97 = kp_1
        146, //keyCode 98 = kp_2
        147, //keyCode 99 = kp_3
        148, //keyCode 100 = kp_4
        149, //keyCode 101 = kp_5
        150, //keyCode 102 = kp_6
        151, //keyCode 103 = kp_7
        152, //keyCode 104 = kp_8
        153, //keyCode 105 = kp_9
        155, //keyCode 106 = kp_multiply *
        157, //keyCode 107 = kp_add +
        undefined, //keyCode 108 = kp_separator
        156, //keyCode 109 = kp_subtract -
        158, //keyCode 110 = kp_decimal .
        154, //keyCode 111 = kp_divide /
        undefined, //keyCode 112
        undefined, //keyCode 113
        undefined, //keyCode 114
        undefined, //keyCode 115
        undefined, //keyCode 116
        undefined, //keyCode 117
        undefined, //keyCode 118
        undefined, //keyCode 119
        undefined, //keyCode 120
        undefined, //keyCode 121
        undefined, //keyCode 122
        undefined, //keyCode 123
        undefined, //keyCode 124
        undefined, //keyCode 125
        undefined, //keyCode 126
        undefined, //keyCode 127
        undefined, //keyCode 128
        undefined, //keyCode 129
        undefined, //keyCode 130
        undefined, //keyCode 131
        undefined, //keyCode 132
        undefined, //keyCode 133
        undefined, //keyCode 134
        undefined, //keyCode 135
        undefined, //keyCode 136
        undefined, //keyCode 137
        undefined, //keyCode 138
        undefined, //keyCode 139
        undefined, //keyCode 140
        undefined, //keyCode 141
        undefined, //keyCode 142
        undefined, //keyCode 143
        143, //keyCode 144 = num_lock
        116, //keyCode 145 = scroll_lock
        undefined, //keyCode 146
        undefined, //keyCode 147
        undefined, //keyCode 148
        undefined, //keyCode 149
        undefined, //keyCode 150
        undefined, //keyCode 151
        undefined, //keyCode 152
        undefined, //keyCode 153
        undefined, //keyCode 154
        undefined, //keyCode 155
        undefined, //keyCode 156
        undefined, //keyCode 157
        undefined, //keyCode 158
        undefined, //keyCode 159
        undefined, //keyCode 160
        undefined, //keyCode 161
        undefined, //keyCode 162
        undefined, //keyCode 163
        undefined, //keyCode 164
        undefined, //keyCode 165
        undefined, //keyCode 166
        undefined, //keyCode 167
        undefined, //keyCode 168
        undefined, //keyCode 169
        undefined, //keyCode 170
        undefined, //keyCode 171
        undefined, //keyCode 172
        undefined, //keyCode 173
        undefined, //keyCode 174
        undefined, //keyCode 175
        undefined, //keyCode 176
        undefined, //keyCode 177
        undefined, //keyCode 178
        undefined, //keyCode 179
        undefined, //keyCode 180
        undefined, //keyCode 181
        undefined, //keyCode 182
        undefined, //keyCode 183
        undefined, //keyCode 184
        undefined, //keyCode 185
        74, //keyCode 186 = ;
        70, //keyCode 187 = =
        55, //keyCode 188 = ,
        69, //keyCode 189 = -
        56, //keyCode 190 = .
        76, //keyCode 191 = /
        68, //keyCode 192 = `
        undefined, //keyCode 193
        undefined, //keyCode 194
        undefined, //keyCode 195
        undefined, //keyCode 196
        undefined, //keyCode 197
        undefined, //keyCode 198
        undefined, //keyCode 199
        undefined, //keyCode 200
        undefined, //keyCode 201
        undefined, //keyCode 202
        undefined, //keyCode 203
        undefined, //keyCode 204
        undefined, //keyCode 205
        undefined, //keyCode 206
        undefined, //keyCode 207
        undefined, //keyCode 208
        undefined, //keyCode 209
        undefined, //keyCode 210
        undefined, //keyCode 211
        undefined, //keyCode 212
        undefined, //keyCode 213
        undefined, //keyCode 214
        undefined, //keyCode 215
        undefined, //keyCode 216
        undefined, //keyCode 217
        undefined, //keyCode 218
        71, //keyCode 219 = [
        73, //keyCode 220 = \
        72, //keyCode 221 = ]
        75, //keyCode 222 = '
        undefined, //keyCode 223 = !
        77, //keyCode 224 = @
        18, //keyCode 225 = #
        undefined, //keyCode 226 = $
        undefined, //keyCode 227 = %
        undefined, //keyCode 228 = ^
        undefined, //keyCode 229 = &
        17, //keyCode 230 = *
        undefined, //keyCode 231 = (
        undefined, //keyCode 232 = )
        undefined, //keyCode 233 = :
        81, //keyCode 234 = +
        undefined, //keyCode 235 = <
        undefined, //keyCode 236 = _
        undefined, //keyCode 237 = >
        undefined, //keyCode 238 = ?
        undefined, //keyCode 239 = ~
        // { | } "
        undefined, //keyCode 240 = {
        undefined, //keyCode 241 = |
        undefined, //keyCode 242 = }
        undefined, //keyCode 243 = "
        undefined, //keyCode 244
        undefined, //keyCode 245
        278, //keyCode 246 = copy
        undefined, //keyCode 247
        undefined, //keyCode 248
        undefined, //keyCode 249
        undefined, //keyCode 250
        undefined, //keyCode 251
        undefined, //keyCode 252
        undefined, //keyCode 253
        undefined, //keyCode 254
        undefined, //keyCode 255
        undefined, //keyCode 256
        undefined, //keyCode 257
        undefined, //keyCode 258
        undefined, //keyCode 259
        undefined, //keyCode 260
        undefined, //keyCode 261
        undefined, //keyCode 262
        undefined, //keyCode 263
        undefined, //keyCode 264
        279, //keyCode 265 = paste
        undefined, //keyCode 266
        277, //keyCode 267 = cut
      ]
    })
})();
